IOMMU: imply "verbose" from "debug"
authorJan Beulich <jbeulich@suse.com>
Wed, 28 Nov 2012 16:00:56 +0000 (17:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 28 Nov 2012 16:00:56 +0000 (17:00 +0100)
I think that generally enabling debugging code without also enabling
verbose output is rather pointless; if someone really wants this, they
can always pass e.g. "iommu=debug,no-verbose".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/drivers/passthrough/iommu.c

index 47408f2bd9370e6d1fb71027ee3a54b68874a5eb..a12fa48e35e7aaf75a06441ba1c728d5c0457932 100644 (file)
@@ -92,7 +92,11 @@ static void __init parse_iommu_param(char *s)
         else if ( !strcmp(s, "intremap") )
             iommu_intremap = val;
         else if ( !strcmp(s, "debug") )
+        {
             iommu_debug = val;
+            if ( val )
+                iommu_verbose = 1;
+        }
         else if ( !strcmp(s, "amd-iommu-perdev-intremap") )
             amd_iommu_perdev_intremap = val;
         else if ( !strcmp(s, "dom0-passthrough") )